<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <link rel="stylesheet" type="text/css" href="${contextPath}/resources/basicInfoCSS/op_header.css">
 <link rel="stylesheet" type="text/css" href="${contextPath}/resources/basicInfoCSS/common.css">
 <link rel="stylesheet" type="text/css" href="${contextPath}/resources/basicInfoCSS/meinfo.css">
 <link rel="stylesheet" href="${contextPath}/resources/basicInfoCSS/appinfo.css"/>
 <link href="${contextPath}/assets/css/style-responsive.css" rel="stylesheet" type="text/css" />
	<div class="wbAppMain">
		<div class="bread_Nav">
			<a href="javascript:void(0);">首页</a>
			<span class="sep_bread">&gt;</span>
			<a href="javascript:void(0);">开发者信息</a>
			<span class="sep_bread">&gt;</span>
			<span class="fb">基本信息</span>
		</div>
		<div class="wbAppInfo clearfix" style="margin-top: 50px;">
 			<div class="page-container">
           		<div class="waiLeft">
					<div class="info1 clearFix">
						<p class="set">
							<a href="javascript:void(0);">${cooperDetails.cooperName}</a>
						</p>
					</div>
	 				<div class="lh_nav">
						<dl class="list_one2">
							<dd >
								<c:choose>
									<c:when test="${cooperDetails.cooperId !=null}">
										<a href="javascript:void(0);" id="infor">基本信息</a>
									</c:when>
									<c:otherwise>
										<a href="${contextPath}/portal/cooperator/MyDetails">基本信息</a>
									</c:otherwise>
								</c:choose>
							  
							</dd>
							<dd>
							  <a id="change">密码修改</a>
							</dd>
						</dl>
	  				</div>
				</div>
				<!-- 基本信息 -->
	            <div id="basci" class="waiRight">
	                <div class="waiTitle">
	                    <p class="left">基本信息</p>
	                </div>
	                <div class="step_container">
	                	<div class="circle_step_display circle_step_1"></div>
	                </div>
	                <div class="form_table" id="wrapper">
                        <div class="tab_special_line">
                        </div>
                        <form id="inforForm" action="${contextPath}/portal/cooperator/updateMyDetails" method="post">
                 		    <input name="cooperId"  value="${cooperDetails.cooperId}" type="hidden">
	                    	<dl class="clearfix">
		                        <dt><em>*</em> 合作者名称：</dt>
		                        <dd class="conbox">
		                        	<input name="cooperName" id="cooperName" class="V35_inp" value="${cooperDetails.cooperName}" type="text" placeholder="请填写合作者名称">
		                        </dd>
		                        <dd class="tipbox" ></dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 所在地区：</dt>
		                        <dd class="conbox">
			                        <input id ="province" value="${cooperDetails.province}" type="hidden">
			                        <input id ="city" value="${cooperDetails.city}" type="hidden">
			                        <select id="id_provSelect" name="province" onChange="loadCity(this.value);" >
			                        	<option value="">请选择省份</option>
			                        </select>&nbsp;
	  								<select id="id_citySelect" name="city" >
	  									<option value="">请选择城市</option>
	  								</select>&nbsp;
		                        </dd>
	                    	</dl>
	                    	<dl class="clearfix">
		                        <dt><em>*</em>  详细地址：</dt>
		                        <dd class="conbox">
			                        <input id="address" name="address" class="V35_inp" type="text" value="${cooperDetails.address}" >
		                        </dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 企业电话：</dt>
		                        <dd class="conbox">
			                        <input id="phone" name="phone" class="V35_inp" type="text" value="${cooperDetails.phone}">
		                        </dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 企业邮箱：</dt>
		                        <dd class="conbox">
		                        	<input id="d_mail" name="email" class="V35_inp" type="text" value="${cooperDetails.email}">
	                        	</dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 邮编：</dt>
		                        <dd class="conbox">
		                        	<input id="d_postcode" name="postcode" class="V35_inp" type="text" value="${cooperDetails.postcode}">
	                        	</dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 网站：</dt>
		                        <dd class="conbox">
		                        	<input id="d_site" name="site" class="V35_inp" type="text" value="${cooperDetails.site}">
	                        	</dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 紧急联系人：</dt>
		                        <dd class="conbox">
		                        	<input id="d_contactPerson" name="contactPerson" class="V35_inp" type="text" value="${cooperDetails.contactPerson}">
	                        	</dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 紧急联系人电话：</dt>
		                        <dd class="conbox">
		                        	<input id="d_mail" name="contactPhone" class="V35_inp" type="text" value="${cooperDetails.contactPhone}">
	                        	</dd>
		                    </dl>
		                    <dl class="p_btn clearfix">
		                        <dt>&nbsp;</dt>
		                        <dd>
		                        	<button type="submit" class="W_btn_a" >提交</button>
			                        <button type="reset" class="W_btn_a">取消</button>
		                        </dd>
		                    </dl>
	                    </form>
	                </div>
	            </div>
	            <!-- 密码修改 -->
	            <div id="changePa" class="waiRight" style="display: none;">
	                <div class="waiTitle">
	                    <p class="left">密码修改</p>
	                </div>
	                <div class="step_container">
	                	<div class="circle_step_display circle_step_1"></div>
	                </div>
	                <div class="form_table" id="wrapper">
                        <div class="tab_special_line"></div>
                        <form id="changeForm" action="${contextPath}/portal/cooperator/updateMyDetails" method="post" >
                 		    <input name="cooperId"  value="${cooperDetails.cooperId}" type="hidden">
		                    <<dl class="clearfix">
		                        <dt><em>*</em> 新密码：</dt>
		                        <dd class="conbox">
		                        	<input id="password" name="password" class="V35_inp" type="password">
	                        	</dd>
		                    </dl>
		                    <dl class="clearfix">
		                        <dt><em>*</em> 确认密码：</dt>
		                        <dd class="conbox">
		                        	<input id="confirm_password" name="confirm_password" class="V35_inp" type="password">
	                        	</dd>
		                    </dl>
		                    <dl class="p_btn clearfix">
		                        <dt>&nbsp;</dt>
		                        <dd>
		                        	<button type="submit" class="W_btn_a" >提交</button>
			                        <button type="reset" class="W_btn_a">取消</button>
		                        </dd>
		                    </dl>
	                    </form>
	                </div>
	            </div>
	            
	        <div class="clear"></div>
         </div>
    </div>
</div>

<script type="text/javascript" src="${contextPath}/resources/basicInfoJS/portal/second_evel_address.js"></script>
<script type="text/javascript" src="${contextPath}/resources/basicInfoJS/jquery/jquery.validate.js"></script>
<script type="text/javascript" src="${contextPath}/resources/basicInfoJS/portal/regist.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
   		if($("#province").val()){
   			loadProvince($("#province").val());
   			loadCity($("#city").val());
   		}else{
   			loadProvince('110101');
   		};
   		$("#change").click(function(){
   			$("#basci").hide();
   			$("#changePa").show();
   		});
   		$("#infor").click(function(){
   			$("#basci").show();
   			$("#changePa").hide();
   		});
   		checkInforForm("inforForm");
   		checkPasswordForm("changeForm");
   	 	$("body").removeClass().addClass("wbApp");
   	});   
</script>
